import request from '@/utils/request'

export function createObjectTemplate(params) {
  return request({
    url: '/template/objectTemplate/v1/createObjectTemplate',
    method: 'post',
    data: params
  })
}
export function findByPage(params) {
  return request({
    url: '/template/objectTemplate/v1/findByPage',
    method: 'post',
    data: params
  })
}
export function updateObjectTemplate(params) {
  return request({
    url: '/template/objectTemplate/v1/updateObjectTemplate',
    method: 'post',
    data: params
  })
}
export function validObjectTemplate(id) {
  return request({
    url: '/template/objectTemplate/v1/valid/' + id,
    method: 'post'
  })
}
export function invalidObjectTemplate(id) {
  return request({
    url: '/template/objectTemplate/v1/invalid/' + id,
    method: 'post'
  })
}

export function findAllValidCategory() {
  return request({
    url: '/template/templateCategory/v1/findAllValidCategory',
    method: 'get'
  })
}
